/*
 
 * 
 * */



var exchangemsg = document.getElementById('exchangemsg');
var submitBtn = document.getElementById('submitBtn');
var closeBtn = document.querySelector('.closeBtn');
var successtc = document.querySelector('.pop-up-windows');
var losetc = document.querySelector('.pop-up-windows1');
var agentBtn = document.getElementById('agentBtn');


submitBtn.addEventListener('click',function(){
	if(exchangemsg.value == ""){
  		alert("您输入为空!");
 	}else if(exchangemsg.value == "112233"){
  		successtc.style.display = "block";
  		setTimeout(function(){
  			location.href = "Changeplace.html";
  		},3000);
  		closeBtn.addEventListener('click',function(){
			successtc.style.display = "none";
			losetc.style.display = "none";
	});
  	}else{
  		losetc.style.display = "block";
  		agentBtn.addEventListener('click',function(){
			losetc.style.display = "none";
		});
  	}
});
  